<template>
  <el-carousel height="350px" :autoplay="false">
    <el-carousel-item v-for="(item, index) in list" :key="index">
      <div class="img_box">
        <img :src="item" />
      </div>
    </el-carousel-item>
  </el-carousel>
</template>
<script>
import p1 from "@/assets/image/banner/1.jpg";
import p2 from "@/assets/image/banner/2.jpg";
import p3 from "@/assets/image/banner/3.jpg";
export default {
  data () {
    return {
      list: [p1, p2, p3],
    };
  },
  methods: {},
};
</script>
<style lang="scss" scoped>
.el-carousel /deep/ {
  .el-carousel__container {
    display: block;
  }
  .el-carousel__item {
    .img_box {
      height: 350px;
      img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }
}
</style>